//
//  NSString+Attributed.h
//  jzyParents
//
//  Created by 任辰东 on 2022/4/29.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Attributed)

// 设置字符串中指定字体颜色 大小
- (NSAttributedString *)setAttributedStringWith:(NSString *)string WithIndexes:(NSString *)indexes WithStringColor:(UIColor *)stringColor WithIndexesColor:(UIColor *)indexesColor WithFont:(UIFont *)font;

// 设置字符串中指定字体颜色 大小
+ (NSAttributedString *)setAttributedStringWith:(NSString *)string WithIndexes:(NSString *)indexes WithStringColor:(UIColor *)stringColor WithIndexesColor:(UIColor *)indexesColor WithFont:(UIFont *)font;

// 设置字符串中指定字体颜色 大小
+ (NSAttributedString *)setAttributedStringWith:(NSString *)string WithIndexes1:(NSString *)indexes1 WithIndexes2:(NSString *)indexes2 WithStringColor:(UIColor *)stringColor WithIndexes1Color:(UIColor *)indexes1Color WithIndexes2Color:(UIColor *)indexes2Color;

@end

NS_ASSUME_NONNULL_END
